package com.jie.parent;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.core.env.ConfigurableEnvironment;

import java.util.logging.Logger;

@SpringBootApplication
@ComponentScan("com.jie")
public class Application {
    private static final Logger LOG=Logger.getLogger(Application.class.getName());
    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication(Application.class);
        ConfigurableEnvironment environment = springApplication.run(args).getEnvironment();
        LOG.info("启动成功！！");
        LOG.info("地址：\t http://127.0.0.1:"+environment.getProperty("server.port")+"\t 端口");

    }

}
